package com.piece.core.verifycode.exception;

import com.piece.core.framework.constant.ExceptionAuthConstants;
import com.piece.core.framework.util.basic.I18nUtil;
import org.springframework.security.core.AuthenticationException;

/**
 * 验证码异常类
 */
public class ValidateCodeException extends AuthenticationException {

    public ValidateCodeException() {
        super(I18nUtil.message(ExceptionAuthConstants.VALIDATE_CODE_INVALID));
    }

    public ValidateCodeException(String message) {
        super(message);
    }
}
